const observer={    
    list:[],
    subscribe(callback){
        this.list.push(callback)
    },
    dispath(data){
      this.list.forEach(item=>{
        item(data)
      })
    }
}
export default observer